import {createRouter,createWebHistory} from "vue-router"

export default createRouter({
    history: createWebHistory("/system"),
    routes: [
        {
            path: "/",
            redirect: "/books"
        },{
            path: "/books",
            name: "Books",
            component: ()=> import("../../pages/Books.vue")
        },{
            path: "/addBooks",
            name: "AddBooks",
            component: ()=> import("../../pages/AddBooks.vue")
        },{
            path: "/widget",
            name: "Widget",
            component: ()=> import("../../pages/Widget.vue")
        },{
            path: "/user",
            name: "User",
            component: ()=> import("../../pages/User.vue")
        },{
            path: "/feedback",
            name: "Feedback",
            component: ()=> import("../../pages/Feedback.vue")
        }
    ]
})